package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.ShopProductImage;

/**
 * 商品图片Mapper接口
 * 
 * @author Alan Zhang
 * @date 2021-09-12
 */
public interface ShopProductImageMapper 
{
    /**
     * 查询商品图片
     * 
     * @param id 商品图片主键
     * @return 商品图片
     */
    public ShopProductImage selectShopProductImageById(Long id);

    /**
     * 查询商品图片列表
     * 
     * @param shopProductImage 商品图片
     * @return 商品图片集合
     */
    public List<ShopProductImage> selectShopProductImageList(ShopProductImage shopProductImage);

    /**
     * 新增商品图片
     * 
     * @param shopProductImage 商品图片
     * @return 结果
     */
    public int insertShopProductImage(ShopProductImage shopProductImage);

    /**
     * 修改商品图片
     * 
     * @param shopProductImage 商品图片
     * @return 结果
     */
    public int updateShopProductImage(ShopProductImage shopProductImage);

    /**
     * 删除商品图片
     * 
     * @param id 商品图片主键
     * @return 结果
     */
    public int deleteShopProductImageById(Long id);

    /**
     * 批量删除商品图片
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopProductImageByIds(String[] ids);
}
